import {http} from './common'
/**
*公共 主题接口
 */
// 头部菜单
export const autoSelectedList = (data) => http('get', 'report/cloudLoan/common/autoSelectedList', data)

// 地区下拉
export const findAllDefaultOrgList = (data) => http('get', 'report/cloudLoan/common/findAllDefaultOrgList', data)

// 地区查找
export const findChildrenOrgList = (data) => http('post', 'report/cloudLoan/common/findChildrenOrgList', data)

// 收藏
export const saveDataInfo = (data) => http('post', 'collection/saveDataInfo', data)

// 取消收藏
export const cancelCollect = (data) => http('post', 'collection/cancel', data)

// 检查收藏
export const checkSaveFlag = (data) => http('post', 'collection/checkSaveFlag', data)

// 数据监测-业务访问习惯
export const monitorBusi = (data) => http('post', 'common/monitor/busi', data)


/**
 * 总览 API
 */
// 总览-六宫格主报表 
export const pandectMajor = (data) => http('post', 'report/cloudLoan/pandect/major', data)

// 总览-趋势报表
export const pandectTrend = (data) => http('post', 'report/cloudLoan/pandect/trend', data)


/**
 * 云贷 API
 */

// 云贷-驾驶舱-九宫格主报表
export const cockpitMajor = (data) => http('post', 'report/cloudLoan/cockpit/major', data)

// 云贷-驾驶舱-本月业绩达成报表 -------- 云贷-业绩-达成仪表盘主报表
export const achievementMajor = (data) => http('post', 'report/cloudLoan/achievement/major', data)

// 云贷-实时-指标实时涨跌报表
export const actualMajor = (data) => http('post', 'report/cloudLoan/actual/major', data)

// 云贷-业绩-对比趋势报表 
export const achievementTrend = (data) => http('post', 'report/cloudLoan/achievement/trend', data)

// 云贷-业绩-详细报表 
export const achievementDetail = (data) => http('post', 'report/cloudLoan/achievement/detail', data)

// 云贷-实时-详细报表 
export const actualDetail = (data) => http('post', 'report/cloudLoan/actual/detail', data)

// 云贷-实时-24小时趋势报表 
export const actualTrend = (data) => http('post', 'report/cloudLoan/actual/trend', data)

// 云贷-授信-详细报表 
export const creditDetail = (data) => http('post', 'report/cloudLoan/credit/detail', data)

// 云贷-授信-趋势报表 
export const creditTrend = (data) => http('post', 'report/cloudLoan/credit/trend', data)

// 云贷-授信-九宫格主报表 
export const creditMajor = (data) => http('post', 'report/cloudLoan/credit/major', data)

// 云贷-在库-详细报表 
export const storageDetail = (data) => http('post', 'report/cloudLoan/storage/detail', data)

// 云贷-在库-趋势报表 
export const storageTrend = (data) => http('post', 'report/cloudLoan/storage/trend', data)

// 云贷-在库-九宫格主报表 
export const storageMajor = (data) => http('post', 'report/cloudLoan/storage/major', data)

// 云贷-贷后-详细报表 
export const afterloanDetail = (data) => http('post', 'report/cloudLoan/afterloan/detail', data)

// 云贷-贷后-趋势报表 
export const afterloanTrend = (data) => http('post', 'report/cloudLoan/afterloan/trend', data)

// 云贷-贷后-九宫格主报表 
export const afterloanMajor = (data) => http('post', 'report/cloudLoan/afterloan/major', data)

// 云贷-人力-详细报表 
export const hrDetail = (data) => http('post', 'report/cloudLoan/hr/detail', data)

// 云贷-人力-趋势报表 
export const hrTrend = (data) => http('post', 'report/cloudLoan/hr/trend', data)

// 云贷-人力-九宫格主报表 
export const hrMajor = (data) => http('post', 'report/cloudLoan/hr/major', data)


/**
* 收藏
 */
// 获取收藏列表
export const findListByPage = (data) => http('post', 'collection/findListByPage', data)
